import request from '@/utils/request'

export function addUser(data) {
  return request({
    url: '/userBase/save',
    method: 'post',
    data
  })
}

export function getUser(data) {
  return request({
    url: '/userBase/queryList',
    method: 'get',
    params: data
  })
}

export function getUserById(data) {
  return request({
    url: '/userBase/queryById',
    method: 'get',
    params: data
  })
}
export function updateUser(data) {
  return request({
    url: `/userBase/updateById`,
    method: 'post',
    data
  })
}

export function getUserInfo(data) {
  console.log(data)
  return request({
    url: '/userBase/queryUserInfo',
    method: 'get',
    params: data
  })
}

export function getUserMobile(data) {
  console.log(data)
  return request({
    url: '/userBase/queryUserMobile',
    method: 'get',
    params: data
  })
}

export function getQuery(data) {
  console.log(data)
  return request({
    url: '/userBase/queryUserMobile',
    method: 'get',
    params: data
  })
}

